// 公用地址 
let url = 'http://lzyzone.top:8009/orderback/'

// let url = 'http://127.0.0.1:8009'
// let url = 'http://192.168.50.14:8009'

// let url = 'http://192.168.137.113:8009'

 
 // 获取用户信息
 let getUserInfo = `${url}/memberuser/getMemberUserInfo`
 
// 上架商家分页查询	http://localhost:8009/sellerinfo/listup?page=1&size=12
let upSellerList = `${url}/sellerinfo/listup?`  

// 获取商家的所有商品  http://localhost:8009/sellerinfo/list?sellerId=111111
let getSellerInfo = `${url}/sellerinfo/list?sellerId=`  

// 发送购物车
let updateCart = `${url}/cart/updateCart`

// 获取购物车中的数据
let cartBySellerAndMember  = `${url}/cart/find/`

// 获取购物车中的数据和商家数据进行拼接进行展示
let sellerMemberShowList  = `${url}/cart/getSellerMemberCart?sellerId=`

// productInfo
let productDetails = `${url}/productInfo/getInfo/` 

// productInfo/seller/productName 获取搜索数据
let searchSellerByProduct = `${url}/productInfo/seller/productName`;

// /create_redis , 创建订单
let createredisUrl = `${url}/orderMaster/create_redis`;

// 取消订单，回退redis数据库  http://localhost:8009/orderMaster/cancel_redis?orderId=13123
let cancelRedisOrderUrl = `${url}/orderMaster/cancel_redis?orderId=`

// 模拟支付
let muckpayurl = `${url}/payment/muck`

// 订单详情 /orderMaster/detail?openId=1231&orderId=60fa767ffecfb6385b1d05c42369e528
let detailsInfo = `${url}/orderMaster/detail?`

// 获取用户的订单列表，通过openid获取
let getOrders = `${url}/orderMaster/list?`;

// 获取用户的订单列表 ==》 通过token获取
let getOrderList = `${url}/orderMaster/orderlist?`;

// 会员注册  /memberuser/login_register
let loginRegisterUrl = `${url}/memberuser/login_register`

// 微信登录请求地址
let getTokenURL = `http://localhost:8009/wx/api/callback`

// http://localhost:8009/system/comment/seller/111111?pageNum=0&pageSize=1
// 获取商家评论
let getSellerComment = `${url}/system/comment/seller/`

// 用户评论
let memberComment = `${url}/system/comment/member`

// 检查订单是否评论
let checkOrderComment = `${url}/system/comment/order`

export {
	getTokenURL,
	upSellerList,
	getSellerInfo, 
	updateCart, 
	cartBySellerAndMember, 
	sellerMemberShowList, 
	productDetails, 
	cancelRedisOrderUrl, 
	muckpayurl, 
	createredisUrl, 
	detailsInfo, 
	loginRegisterUrl,
	getOrders,
	getUserInfo,
	getOrderList,
	getSellerComment,
	memberComment,
	checkOrderComment,
	searchSellerByProduct
}